<!--页面主要内容-->
<main class="lyear-layout-content">
      
    <div class="container-fluid p-t-15">
      
      <div class="row">
        <div class="col-lg-12">
          <div class="card">
            
            <div class="card-body">
              <div class="form-group col-md-12">
                <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);return false;">返 回</button>
              </div>
              <div class="table-responsive">
                <table class="table table-bordered">
                  <tbody>
                    <tr>
                        <td>订单号</td>
                        <td>{$Order.code}</td>
                        <td>用户</td>
                        <td>{$Order.user.nickname}</td>
                    </tr>
                    <tr>
                        <td>收货人</td>
                        <td>{$Order.address.consignee}</td>
                        <td>收货地址</td>
                        <td>{$Order.address.address_text}</td>
                    </tr>
                    <tr>
                        <td>收货人联系号码</td>
                        <td>{$Order.address.mobile}</td>
                        <td>订单状态</td>
                        <td>{$Order.status_text}</td>
                    </tr>
                    {if $Order.status > 1}
                      <tr>
                        <td>配送公司</td>
                        <td>{$Order.express.name ? $Order.express.name : '未配送'}</td>
                        <td>配送单号</td>
                        <td>{$Order.expcode ? $Order.expcode : '未填写'}</td>
                      </tr>
                    {/if}
                    <tr>
                      <td>订单总价</td>
                      <td>{$Order.total}</td>
                      <td>下单时间</td>
                      <td>{$Order.createtime}</td>
                    </tr>
                  </tbody>
                </table>
              </div>
              <div class="table-responsive">
                <table class="table table-bordered">
                  <thead>
                    <tr>
                      <th>商品名称</th>
                      <th>商品数量</th>
                      <th>商品单价</th>
                      <th>商品总价</th>
                      <th>商品分类</th>
                      <th>评分</th>
                      <th>商品评论</th>
                    </tr>
                  </thead>
                  <tbody>
                    {foreach $VipProduct as $item}
                    <tr>
                      <td>
                        <a href="{:url('admin/product/edit',['proid' => $item.proid])}" target="_blank">{$item.info.name}</a>
                      </td>
                      <td>{$item.nums}</td>
                      <td>{$item.price}</td>
                      <td>{$item.total}</td>
                      <td>{$item.info.type.name}</td>
                      <td>{$item.rate ? $item.rate.'星' : '未评分'}</td>
                      <td>{$item.comment ? $item.comment : '未评价'}</td>
                    </tr>
                    {/foreach}
                  </tbody>
                </table>
              </div>
              
            </div>
          </div>
        </div>
        
      </div>
      
    </div>
  
  </main>
  <!--End 页面主要内容-->